package com.sh.data.engine.common.constants;

/**
 * @author tyf
 * @Description:
 * @date 2020-06-1910:14
 */
public interface HiveConstants {

    // ---------- table_params in metastore ----------

    String COLUMN_STATS_ACCURATE = "COLUMN_STATS_ACCURATE";

    String EXTERNAL = "EXTERNAL";

    String NUMFILES = "numFiles";

    String NUMROWS = "numRows";

    String NUMPARTITIONS = "numPartitions";

    String TOTALSIZE = "totalSize";

    String RAWDATASIZE = "rawDataSize";

    String TRANSIENT_LASTDDLTIME = "transient_lastDdlTime";

    String TABLELIFECYCLE = "tableLifeCycle";

    String RULE_META_VALUE_ID = "ruleMetaValueId";

    String PRIMARY_KEY_FIELD = "primaryKey";

    String COMMENT = "comment";

    // ---------- hive table fields operation types ----------

    String TYPE_ADD = "add";

    String TYPE_DELETE = "delete";

    String TYPE_EDIT = "edit";

    String TYPE_NONE = "none";

    //---------- hive table fields types ----------

    String TYPE_CHAR = "CHAR";

    String TYPE_VARCHAR = "VARCHAR";

    String TYPE_DECIMAL = "DECIMAL";

    String TYPE_STRING = "STRING";

    int CHAR_MAX_VALUE = 255;

    int VARCHAR_MAX_VALUE = 65355;

}
